Skip to content

MINOR: Move TerseFailure to server-common#21890

Open
m1a2st wants to merge 3 commits intoapache:trunkfrom
m1a2st:MINOR-TerseFailure
Open

MINOR: Move TerseFailure to server-common#21890
m1a2st wants to merge 3 commits intoapache:trunkfrom
m1a2st:MINOR-TerseFailure

Conversation

@m1a2st
Copy link
Copy Markdown
Collaborator

@m1a2st m1a2st commented Mar 29, 2026

Rewite this class and move to server-common module

Reviewers: Chia-Ping Tsai chia7712@gmail.com

@github-actions github-actions bot added triage PRs from the community core Kafka Broker tools small Small PRs labels Mar 29, 2026
import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator.Feature
import kafka.Kafka
import kafka.tools.{StorageTool, TerseFailure}
import kafka.tools.StorageTool
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would you mind optimizing the import order?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, updated

*/
class TerseFailure(message: String, cause: Throwable) extends KafkaException(message, cause) {
def this(message: String) = this(message, null)
public class TerseFailure extends KafkaException {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is used by both core and shell, maybe the server module would be a better fit?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, MetadataShell uses this exception, and the shell module does not depend on the server module.

@github-actions github-actions bot added build Gradle build or GitHub Actions and removed triage PRs from the community labels Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Gradle build or GitHub Actions core Kafka Broker small Small PRs tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants